package com.anywave.quanbo;

import android.app.Application;

import com.umeng.socialize.Config;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;


public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        UMShareAPI.get(this);//初始化sdk
        //开启debug模式，方便定位错误，具体错误检查方式可以查看http://dev.umeng.com/social/android/quick-integration的报错必看，正式发布，请关闭该模式
        Config.DEBUG = true;
    }


    //各个平台的配置
    {
        //微信
        PlatformConfig.setWeixin("wx2c6846667d3fd5bd", "17123f8d7cc0b5220e69e87791ea9fe4");
        //新浪微博(第三个参数为回调地址)
        PlatformConfig.setSinaWeibo("452487483", "34fdc23fb341e388da0e0d6cdd9951bd","http://sns.whalecloud.com/sina2/callback");
        //QQ
        PlatformConfig.setQQZone("1106365954", "Bh0Yb7PwxYdTd86f");
    }
}
